package org.pps.gl.client;

import java.io.Serializable;
import java.util.ArrayList;
import org.pps.gl.client.data.UserInfo;

public class LoginInfo implements Serializable {

	private static final long serialVersionUID = 5491074430700743084L;
	private boolean loggedIn = false;
	private String loginUrl;
	private String logoutUrl;
	private String emailAddress;
	private String lastname;
	private String firstname;
	private UserInfo userInfo;
	private String sessionId;
	private ArrayList<String> allSchools;
	private ArrayList<String> allEmail;
	private ArrayList<String> allNom;
	private ArrayList<String> allEntreprise;
	private ArrayList<String> allSpecialite;
	private ArrayList<String> demandes;
	private ArrayList<String> received;
	static LoginInfo currentUser = null;

	public static LoginInfo getCurrentUser() {
		return currentUser;
	}

	public static void setCurrentUser(LoginInfo u) {
		currentUser = u;
	}

	public boolean isLoggedIn() {
		return loggedIn;
	}

	public void setLoggedIn(boolean loggedIn) {
		this.loggedIn = loggedIn;
	}

	public String getLoginUrl() {
		return loginUrl;
	}

	public void setLoginUrl(String loginUrl) {
		this.loginUrl = loginUrl;
	}

	public String getLogoutUrl() {
		return logoutUrl;
	}

	public void setLogoutUrl(String logoutUrl) {
		this.logoutUrl = logoutUrl;
	}

	public String getEmailAddress() {
		return emailAddress;
	}

	public void setEmailAddress(String emailAddress) {
		this.emailAddress = emailAddress;
	}

	/**
	 * @return the sessionId
	 */
	public String getSessionId() {
		return sessionId;
	}

	/**
	 * @param sessionId
	 *            the sessionId to set
	 */
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public UserInfo getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	/**
	 * @return the allSchools
	 */
	public ArrayList<String> getAllSchools() {
		return allSchools;
	}

	/**
	 * @param allSchools
	 *            the allSchools to set
	 */
	public void setAllSchools(ArrayList<String> allSchools) {
		this.allSchools = allSchools;
	}

	/**
	 * @return the demandes
	 */
	public ArrayList<String> getDemandes() {
		return demandes;
	}

	/**
	 * @param demandes
	 *            the demandes to set
	 */
	public void setDemandes(ArrayList<String> demandes) {
		this.demandes = demandes;
	}

	/**
	 * @return the received
	 */
	public ArrayList<String> getReceived() {
		return received;
	}

	/**
	 * @param received
	 *            the received to set
	 */
	public void setReceived(ArrayList<String> received) {
		this.received = received;
	}
	
	/**
	 * @return the allEmail
	 */
	public ArrayList<String> getAllEmail() {
		return allEmail;
	}

	/**
	 * @param allEmail
	 *            the allEmail to set
	 */
	public void setAllEmail(ArrayList<String> allEmail) {
		this.allEmail = allEmail;
	}
	
	/**
	 * @return the AllNom
	 */
	public ArrayList<String> getAllNom() {
		return allNom;
	}

	/**
	 * @param AllNom
	 *            the AllNom to set
	 */
	public void setAllNom(ArrayList<String> AllNom) {
		this.allNom = AllNom;
	}
	
	/**
	 * @return the allEntreprise
	 */
	public ArrayList<String> getAllEntreprise() {
		return allEntreprise;
	}

	/**
	 * @param allEntreprise
	 *            the allEntreprise to set
	 */
	public void setAllEntreprise(ArrayList<String> allEntreprise) {
		this.allEntreprise = allEntreprise;
	}
	
	/**
	 * @return the allSpecialite
	 */
	public ArrayList<String> getAllSpecialite() {
		return allSpecialite;
	}

	/**
	 * @param allSpecialite
	 *            the allSpecialite to set
	 */
	public void setAllSpecialite(ArrayList<String> allSpecialite) {
		this.allSpecialite = allSpecialite;
	}

}